<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="1"/>
	<input type="hidden" name="numPerPage" value="${numPerPage!20}"/>
	<input type="hidden" name="orderField" value="${orderField!"id"}"/>
	<input type="hidden" name="orderDirection" value="${orderDirection!"desc"}"/>
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="/job" method="post">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>搜索职位：</label>
					<input type="text" name="name">
				</li>
				<li>
					<label>职位类别：</label>
					<select name="type" id="job_type">
						<option value="-1">请选择</option>
					</select>
				</li>
				<li>
					<label>工作省市：</label>
					<span id="area"></span>
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/job/add" target="navTab"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="demo/common/ajaxDone.html"
			       class="delete"><span>批量删除默认方式</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" postType="string"
			       href="demo/common/ajaxDone.html" class="delete"><span>批量删除逗号分隔</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab" warn="请选择一个用户"><span>修改</span></a>
			</li>
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab"
			       title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
			<th><input type="checkbox" group="ids" class="checkboxCtrl"></th>
			<th orderField="title">公司编号</th>
			<th orderField="author">公司名</th>
			<th orderField="nature">创建者</th>
			<th orderField="date">公司类型</th>
			<th orderField="position">所属行业</th>
			<th orderField="type">所在地区</th>
			<th orderField="number">网址</th>
			<th orderField="edu">联系人</th>
			<th orderField="firm">联系电话</th>
			<th orderField="exp">联系邮箱</th>
			<th orderField="area">联系地址</th>
			<th></th>
		</tr>
		</thead>
		<tbody>
		<#list firms.getList() as f>
		<tr target="sid_user" rel="1">
			<td><input name="id" value="${f.id}" type="checkbox"></td>
			<td>${f.id}</td>
			<td><a href="/job?firm=${f.id}" target="navTab" rel="job_index">${f.name}</td>
			<td>${f.creator_username!}</td>
			<td>${f.type_name!}</td>
			<td>${f.industry_name!}</td>
			<td>${f.region}</td>
			<td>${f.site}</td>
			<td>${f.contact}</td>
			<td>${f.tel!}</td>
			<td>${f.email!}</td>
			<td>${f.address}</td>
			<td>
				<a title="删除" target="ajaxTodo" href="/firm/delete/${f.id}" class="btnDel">删除</a>
				<a title="编辑" target="navTab" href="/firm/edit/${f.id}" class="btnEdit">编辑</a>
			</td>
		</tr>
		</#list>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共${job_list.totalRow}条</span>
		</div>

		<div class="dwz-pagination" targetType="navTab" totalCount="${job_list.totalRow}"
		     numPerPage="${numPerPage!20}" pageNumShown="10"
		     currentPage="${job_list.pageNumber!1}"></div>
	</div>
</div>
